Previously we would emit 'hidden' before the overview was fully hidden,
so any attempts to animate windows on that signal could still fail.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>
this._visible = false;
this._animationInProgress = false;
- this.emit('hidden');
// Handle any calls to show* while we were hiding
- if (this._shown)
+ if (this._shown) {
+ this.emit('hidden');
this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
- else
+ } else {
Main.layoutManager.hideOverview();
+ this.emit('hidden');
+ }
Main.panel.style = null;